home *** CD-ROM | disk | FTP | other *** search
-
- Hello,
- Here is a quick note on how to use version B.5.8. In this
- pre-release version, the programmer has to do a little extra
- leg work (compile, assemble, link). The final product will
- not require this.
-
- to compile:
-
- MS-DOS> cc56000 foo.c
-
- this creates a file called "foo.asm"
-
-
- to assemble:
-
- MS-DOS> asm56000 -c -l foo
-
- this creates 2 files, foo.lnk and foo.lst
-
-
- MS-DOS> lnk56000 -c -oy:VALUE foo
-
- VALUE is a hex value that must be greater than 0. If the
- program being compiled makes use of LONG data types, the
- programmer must define the runtime stack size. The rule of
- thumb is 1 stack location for every long variable, remember
- if the function is recursive - you could be in trouble, so
- be generous. See example:
-
- foo()
- {
- long i,j,k;
-
- ;
- bar();
- ;
- }
-
- bar()
- {
- long l,m,n;
-
- ;
- ;
- ;
- }
-
- this example will require AT least 7 locations (6 variables +
- 1 mandatory).
-
- This creates a file for the ADS/simulator called foo.lod
-
-
- Good luck -
- Peter Percosan
-